package cn.edu.nuc.ssm.service;

import cn.edu.nuc.ssm.dto.BbsTopicAndUsername;
import cn.edu.nuc.ssm.entity.BbsSection;
import cn.edu.nuc.ssm.entity.BbsTopic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/4/19.
 */
public interface BbsTopicService {


    public int insertBbsTopic(BbsTopic bbsTopic);

    public BbsTopic findbyId(Integer id);

    List<BbsTopicAndUsername> findTopicAndUsername(@Param("sid") Integer sid);

    List<BbsTopic>  find();

    List<BbsTopic>  findNolocation();

    void delete(Integer id);


    void addViewCount(Integer id);

    void addbo(Integer id);

    List<BbsTopic> findbolocation();

    void removebo(Integer id);

   void  updatepicbyid(Integer id,String picname);

    void addhot(Integer id);

    List<BbsTopic> findhotlocation();

    void addhit(Integer id);

    List<BbsTopic> findhitlocation();

    List<BbsTopic> findbyUid(Integer id);

    int updateBbsTopic(BbsTopic bbsTopic);
}
